<ui:composition template="/templates/layout.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="content">
		<h:form styleClass="loginPanelStyle">
			<p:growl id="msgs" showDetail="true" sticky="false" />
			<p:panelGrid columns="2">
				<f:facet name="header">
                    Painel Login
                </f:facet>
				<h:outputText value="Usuário : "></h:outputText>
				<p:inputText id="username" value="#{loginMBean.username}"
					required="true" requiredMessage="Por favor informe o usuário!"
					message="fc">
					<f:validateLength minimum="1" />
				</p:inputText>
				<h:outputText value="Senha : "></h:outputText>
				<p:password id="password" value="#{loginMBean.password}"
					required="true" requiredMessage="Por favor informe o senha!">
					<f:validateLength minimum="1" />
				</p:password>
				<f:facet name="footer">
					<p:commandButton value="Login" update="msgs"
						actionListener="#{loginMBean.login}" type="submit"
						icon="ui-icon-check" style="margin:0"></p:commandButton>
				</f:facet>
			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
